#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "QtDebug"
#include "QFileDialog"
#include "read_file.h"
#include "analyzebmp.h"
#include "gaussian_noise.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

private:
    Ui::MainWindow *ui;

private:
    void appendError(QString s);
    void appendMsg(QString s, QString plain = NULL);

private:
//    ByteArrayList *writeTo = nullptr;
    AnalyzeBmp *analyzeWrite = nullptr;
//    ByteArrayList *readFrom = nullptr;
    AnalyzeBmp *analyzeRead = nullptr;
};
#endif // MAINWINDOW_H
